package Operation;

import book.Book;
import book.BookList;

/**
 * Created by Salted fish
 * Description:
 * User: 24539
 * Date：2021-09-22
 * Time: 15:47
 */
public class DisplayOperation  implements Opface{
    @Override
    public void work(BookList bookList) {
        System.out.println("打印所有图书！");
        int size = bookList.getUsedSize();
        for(int i = 0; i < size; i++){
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
